<?php
/**
 * User.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-02-18 16:37:07
 * @modified    2023-02-18 16:37:07
 *
 */

namespace App\Models\WorkOrder;

use App\Models\BaseModel;

class User extends BaseModel
{
    protected $table = 'work_order_user';

    protected $fillable = [
        'work_order_id',
        'user_id',
        'is_master',
    ];

    public function user()
    {
        return $this->belongsTo(\App\Models\UserModel::class);
    }
}